package com.t4;

/**
 * Created by xuyiwei on 2018/7/14.
 */
public class T4_8_1 {

    public static void switchShow (int i ){
        switch (i){
            case 0 :
                System.out.println("0");

            case 1 :
                System.out.println("1");

            case 2 :
                System.out.println("2");

            case 3 :
                System.out.println("3");

            case 4 :
                System.out.println("4");

            case 5 :
                System.out.println("5");

            default:
                System.out.println("6");
        }

    }

    public static void main(String[] args) {
        for (int i=0;i<6;i++){
            switchShow(i);
        }
    }
}
